package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.SysContractRefund;

/**
 * 合同退费列Service接口
 *
 * @author ruoyi
 * @date 2025-06-29
 */
public interface ISysContractRefundService
{
    /**
     * 查询合同退费列
     *
     * @param id 合同退费列主键
     * @return 合同退费列
     */
    public SysContractRefund selectSysContractRefundById(Long id);

    /**
     * 查询合同退费列列表
     *
     * @param sysContractRefund 合同退费列
     * @return 合同退费列集合
     */
    public List<SysContractRefund> selectSysContractRefundList(SysContractRefund sysContractRefund);

    /**
     * 新增合同退费列
     *
     * @param sysContractRefund 合同退费列
     * @return 结果
     */
    public int insertSysContractRefund(SysContractRefund sysContractRefund);

    /**
     * 构建实体
     * @param sysContractRefund
     * @return
     */
    public SysContractRefund buildSysContractRefund(SysContractRefund sysContractRefund);

    public String getSerialNumber();

    public int getMaxSequenceFromDB(String date);

    public String selectContractRefundByDate(String date);

    /**
     * 新增合同退费判断方法
     * @param sysContractRefund
     */
    public void emptyInsetSysContractRefund(SysContractRefund sysContractRefund);

    /**
     * 修改合同退费列
     *
     * @param sysContractRefund 合同退费列
     * @return 结果
     */
    public int updateSysContractRefund(SysContractRefund sysContractRefund);

    /**
     * 批量删除合同退费列
     *
     * @param ids 需要删除的合同退费列主键集合
     * @return 结果
     */
    public int deleteSysContractRefundByIds(Long[] ids);

    /**
     * 删除合同退费列信息
     *
     * @param id 合同退费列主键
     * @return 结果
     */
    public int deleteSysContractRefundById(Long id);

    /**
     * 退费合同审核方法
     * @param id
     * @return
     */
    public int approve(Long id);

    /**
     * 校长审核方法
     * @param sysContractRefund
     * @return
     */
    public int cashierApprove(SysContractRefund sysContractRefund);

    /**
     * 驳回方法
     * @param id
     * @param note
     * @return
     */
    public int unApprove(Long id,String note);

    /**
     * 校长驳回方法
     * @param sysContractRefund
     * @param note
     * @return
     */
    public int cashierUnApprove(SysContractRefund sysContractRefund,String note);

    /**
     * BSC驳回方法
     * @param sysContractRefund
     * @param note
     * @return
     */
    public int bscUnApprove(SysContractRefund sysContractRefund,String note);

    /**
     * 财务驳回方法
     * @param sysContractRefund
     * @param note
     * @return
     */
    public int financeUnApprove(SysContractRefund sysContractRefund,String note);

    /**
     * BSC审核方法
     * @param sysContractRefund
     * @return
     */
    public int bscApprove(SysContractRefund sysContractRefund);

    /**
     * 财务审核方法
     * @param sysContractRefund
     * @return
     */
    public int financeApprove(SysContractRefund sysContractRefund);
}